Optimal. Leaf size=170 \[ -\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a \sin (e+f x)+a)}+\frac{(c+d) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{a f \sqrt{c+d \sin (e+f x)}}-\frac{\sqrt{c+d \sin (e+f x)} E\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.207021, antiderivative size = 170, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {2769, 2752, 2663, 2661, 2655, 2653} \[ -\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a \sin (e+f x)+a)}+\frac{(c+d) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{a f \sqrt{c+d \sin (e+f x)}}-\frac{\sqrt{c+d \sin (e+f x)} E\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2769
Rule 2752
Rule 2663
Rule 2661
Rule 2655
Rule 2653
Rubi steps
\begin{align*} \int \frac{\sqrt{c+d \sin (e+f x)}}{a+a \sin (e+f x)} \, dx &=-\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a+a \sin (e+f x))}+\frac{d \int \frac{a-a \sin (e+f x)}{\sqrt{c+d \sin (e+f x)}} \, dx}{2 a^2}\\ &=-\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a+a \sin (e+f x))}-\frac{\int \sqrt{c+d \sin (e+f x)} \, dx}{2 a}+\frac{(c+d) \int \frac{1}{\sqrt{c+d \sin (e+f x)}} \, dx}{2 a}\\ &=-\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a+a \sin (e+f x))}-\frac{\sqrt{c+d \sin (e+f x)} \int \sqrt{\frac{c}{c+d}+\frac{d \sin (e+f x)}{c+d}} \, dx}{2 a \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}+\frac{\left ((c+d) \sqrt{\frac{c+d \sin (e+f x)}{c+d}}\right ) \int \frac{1}{\sqrt{\frac{c}{c+d}+\frac{d \sin (e+f x)}{c+d}}} \, dx}{2 a \sqrt{c+d \sin (e+f x)}}\\ &=-\frac{\cos (e+f x) \sqrt{c+d \sin (e+f x)}}{f (a+a \sin (e+f x))}-\frac{E\left (\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )|\frac{2 d}{c+d}\right ) \sqrt{c+d \sin (e+f x)}}{a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}+\frac{(c+d) F\left (\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )|\frac{2 d}{c+d}\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}{a f \sqrt{c+d \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 1.09891, size = 201, normalized size = 1.18 \[ \frac{\left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) \left (2 \sin \left (\frac{1}{2} (e+f x)\right ) (c+d \sin (e+f x))-\left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) \left ((c+d) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{4} (-2 e-2 f x+\pi )|\frac{2 d}{c+d}\right )-(c+d) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} E\left (\frac{1}{4} (-2 e-2 f x+\pi )|\frac{2 d}{c+d}\right )+c+d \sin (e+f x)\right )\right )}{a f (\sin (e+f x)+1) \sqrt{c+d \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.27, size = 382, normalized size = 2.3 \begin{align*}{\frac{1}{da\cos \left ( fx+e \right ) f}\sqrt{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) d+c \left ( \cos \left ( fx+e \right ) \right ) ^{2}} \left ( \sqrt{{\frac{d\sin \left ( fx+e \right ) }{c-d}}+{\frac{c}{c-d}}}\sqrt{-{\frac{d\sin \left ( fx+e \right ) }{c+d}}+{\frac{d}{c+d}}}\sqrt{-{\frac{d\sin \left ( fx+e \right ) }{c-d}}-{\frac{d}{c-d}}}{\it EllipticE} \left ( \sqrt{{\frac{d\sin \left ( fx+e \right ) }{c-d}}+{\frac{c}{c-d}}},\sqrt{{\frac{c-d}{c+d}}} \right ){c}^{2}-\sqrt{{\frac{d\sin \left ( fx+e \right ) }{c-d}}+{\frac{c}{c-d}}}\sqrt{-{\frac{d\sin \left ( fx+e \right ) }{c+d}}+{\frac{d}{c+d}}}\sqrt{-{\frac{d\sin \left ( fx+e \right ) }{c-d}}-{\frac{d}{c-d}}}{\it EllipticE} \left ( \sqrt{{\frac{d\sin \left ( fx+e \right ) }{c-d}}+{\frac{c}{c-d}}},\sqrt{{\frac{c-d}{c+d}}} \right ){d}^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}{d}^{2}+\sin \left ( fx+e \right ) cd-\sin \left ( fx+e \right ){d}^{2}-cd+{d}^{2} \right ){\frac{1}{\sqrt{- \left ( c+d\sin \left ( fx+e \right ) \right ) \left ( -1+\sin \left ( fx+e \right ) \right ) \left ( 1+\sin \left ( fx+e \right ) \right ) }}}{\frac{1}{\sqrt{c+d\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{d \sin \left (f x + e\right ) + c}}{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{d \sin \left (f x + e\right ) + c}}{a \sin \left (f x + e\right ) + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{\sqrt{c + d \sin{\left (e + f x \right )}}}{\sin{\left (e + f x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{d \sin \left (f x + e\right ) + c}}{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]